package ejd.security.reniec;

import java.io.IOException;

import javax.security.auth.callback.Callback;
import javax.security.auth.callback.CallbackHandler;
import javax.security.auth.callback.UnsupportedCallbackException;

import org.apache.ws.security.WSPasswordCallback;

public class PasswordCallback implements CallbackHandler {

	@Override
	public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException {
	    WSPasswordCallback callback = (WSPasswordCallback) callbacks[0];
	    if("USUARIOSIJRENIEC".equals(callback.getIdentifier())){
	        callback.setPassword("6e0c4670173dd2e0000515e129d3dee8f1a48b688bb2c42b3caef148acef49ea540d6194403873662541777747d0bb3c8b7c724c36339c2b5ead2135e4c41993");
	    }
	}

}
